package cn.coderliu.controller;

import cn.coderliu.model.TestModel;
import cn.coderliu.service.TestModelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private TestModelService testModelService;


    @PostMapping("/test")
    public TestModel test(TestModel testModel) {
        System.out.println(testModel);
        System.out.println("222222");
        TestModel byId = testModelService.getById(1);
        return byId;
    }
}
